package cn.iocoder.yudao.framework.business.basic.convert;

import cn.iocoder.yudao.framework.business.basic.pojo.dto.DTO;
import cn.iocoder.yudao.framework.business.basic.pojo.po.TableEntity;
import cn.iocoder.yudao.framework.business.basic.pojo.vo.VO;

import java.util.List;

/**
 * <pre>
 * OOoO0OOoO0OOOooo0oOOOO0OOOOO0oooOO0ooOOO0Ooooo0OOOOo0ooooO0OOooo0Ooooo0OOOOO
 *  通用的 MapStruct 转换接口，子类继承即可
 * OOoO0OOoO0OOOooo0oOOOO0OOOOO0oooOO0ooOOO0Ooooo0OOOOo0ooooO0OOooo0Ooooo0OOOOO
 * </pre>
 *
 * @author 山野羡民（1032694760@qq.com）
 * @since 2025/04/08
 */
//@org.mapstruct.Mapper
@SuppressWarnings("unused")
public interface EnhancedMapperConvert<V extends VO, D extends DTO, T extends TableEntity> extends SimpleMapperConvert<V, T> {
    //XxxConvert INSTANCE = org.mapstruct.factory.Mappers.getMapper(XxxConvert.class);

    /**
     * 数据传输对象转数据库表实体
     */
    T toEntity(D dto);

    /**
     * 数据传输对象集合转数据库表实体集合
     */
    List<T> toEntity(List<D> dtoList);

}